package com.sinosoft.hydra.um.services.component.message;

import com.sinosoft.hydra.um.constant.BaseConstant;
import com.sinosoft.hydra.um.domain.permission.TMessage;
import com.sinosoft.hydra.um.domain.permission.TMessageReceiver;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2015/8/25.
 */
@Service
public class ToNotice implements MessageSendProxy {


    public boolean isValid(String type) {
        return BaseConstant.MessageSendType.MESSAGE_SEND_TYPE_NOTICE.name().equals(type);
    }

    public boolean send(TMessage tMessage, TMessageReceiver messageReceiver) {
        return true;
    }
}
